package com.zf.yichat.api.dto.request;

import com.zf.yichat.utils.YiChatMsgCode;
import org.hibernate.validator.internal.util.Contracts;

/**
 * @author idea
 * @date Created in 2020/11/5 16:14
 * @description
 */
public class PacketSaleGiveRequest extends FsRequest {
    private Long packetId;
    private String userId;

    public Long getPacketId() {
        return packetId;
    }

    public void setPacketId(Long packetId) {
        this.packetId = packetId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    @Override
    public void valid() {
        Contracts.assertNotNull(packetId, YiChatMsgCode.SYSTEM_PARAM_ERROR.msg());
        Contracts.assertNotNull(userId, YiChatMsgCode.SYSTEM_PARAM_ERROR.msg());
    }
}
